﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Xml.Linq;
using System.Collections;
using System.ComponentModel;
using System.Text.RegularExpressions;
using System.IO;
using System.Collections.Generic;
using System.Reflection;
using TA.JSON;

namespace TA.JSON
{
	/// <summary>
	/// JSON deserialize event arguments.
	/// </summary>
	public class DeserializeEventArgs : EventArgs
	{
		/// <summary>
		/// Ctor.
		/// </summary>
		public DeserializeEventArgs()
		{
		}
		/// <summary>
		/// Ctor.
		/// </summary>
		public DeserializeEventArgs(IJsonReader jr, object entry)
		{
			this.Reader = jr;
			this.Entry = entry;
		}
		/// <summary>
		/// Source of JSON for deserializing the entry.
		/// </summary>
		public IJsonReader Reader { get; set; }
		/// <summary>
		/// Property used to return instantiated and JSON-deserialized entry.
		/// </summary>
		public object Entry { get; set; }
	}
}